<%@ page contentType="text/html;charset=UTF-8" %>    
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="sysName" value="ssb"/>
<c:set var="page_admin" value="${pageContext.request.contextPath}/sendPage/ssb/admin"/>
		<li class="treeview userSLock" userKey="/ssb/pro">
			<a href="javascript:void(0);">
			<i class="fa fa-cog"></i> <span>产品管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="pro-list" class="userSLock" userKey="/ssb/pro/pro-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/pro/pro-list"><i class="fa fa-circle-o"></i>保险产品管理</a></li>
				<li id="pro-tag" class="userSLock" userKey="/ssb/pro/pro-tag"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/pro/pro-tag"><i class="fa fa-circle-o"></i>标签产品配置</a></li>
				<li id="pro-cpy" class="userSLock" userKey="/ssb/pro/pro-cpy"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/pro/pro-cpy"><i class="fa fa-circle-o"></i>保险公司管理</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/ssb/insur">
			<a href="javascript:void(0);">
			<i class="fa fa-cog"></i> <span>保单管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="insur-list" class="userSLock" userKey="/ssb/insur/insur-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/insur/insur-list"><i class="fa fa-circle-o"></i>保单管理</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/ssb/member">
			<a href="javascript:void(0);">
			<i class="fa fa-cog"></i> <span>会员管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="member-list" class="userSLock" userKey="/ssb/member/member-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/member/member-list"><i class="fa fa-circle-o"></i>会员管理</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/ssb/channel">
			<a href="javascript:void(0);">
			<i class="fa fa-cog"></i> <span>渠道管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="channel-org" class="userSLock" userKey="/ssb/channel/channel-org"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/channel/channel-org"><i class="fa fa-circle-o"></i>渠道商管理</a></li>
				<li id="channel-audit-list" class="userSLock" userKey="/ssb/channel/channel-audit-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/channel/channel-audit-list"><i class="fa fa-circle-o"></i>渠道商审核</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/ssb/sys">
			<a href="javascript:void(0);">
			<i class="fa fa-cog"></i> <span>系统设置</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="user-account" class="userSLock" userKey="/ssb/sys/user-account"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/user/user-account"><i class="fa fa-circle-o"></i>账户管理</a></li>
				<li id="sys-dict-list" class="userSLock" userKey="/ssb/sys/sys-dict-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/sys/sys-dict-list"><i class="fa fa-circle-o"></i>数据字典管理</a></li>
				<li id="fund_limit" class="userSLock" userKey="/ssb/sys/fund-limit"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/sys/fund_limit"><i class="fa fa-circle-o"></i>提现设置</a></li>
				<li id="front-system-list" class="" userKey=""><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/front/front-system-list"><i class="fa fa-circle-o"></i>前端系统管理</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/ssb/act">
			<a href="javascript:void(0);">
			<i class="fa fa-cog"></i> <span>权限管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="act-user-give" class="userSLock" userKey="/ssb/act/act-user-give"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/act/act-user-give"><i class="fa fa-circle-o"></i>用户权限分配</a></li>
				<li id="user-role" class="userSLock" userKey="/ssb/act/user-role"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/user/user-role"><i class="fa fa-circle-o"></i>系统角色管理</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/ssb/cms">
			<a href="javascript:void(0);">
			<i class="fa fa-cog"></i> <span>内容管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="cms-list" class="userSLock" userKey="/ssb/cms/cms-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/cms/cms-list"><i class="fa fa-circle-o"></i>文章内容管理</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/ssb/yjgl">
			<a href="javascript:void(0);">
			<i class="fa fa-cog"></i> <span>佣金管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="yjgl-my" class="userSLock" userKey="/ssb/yjgl/yjgl-my"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/yjgl/yjgl-my"><i class="fa fa-circle-o"></i>我的推广费</a></li>
				<li id="yjgl-list" class="userSLock" userKey="/ssb/yjgl/yjgl-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/yjgl/yjgl-list"><i class="fa fa-circle-o"></i>佣金管理</a></li>
				<li id="yjgl-list-detail" class="userSLock" userKey="/ssb/yjgl/yjgl-list-detail"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/yjgl/yjgl-list-detail"><i class="fa fa-circle-o"></i>佣金明细</a></li>
				<li id="cash-out-audit" class="userSLock" userKey="/ssb/yjgl/cash-out-audit"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/yjgl/cash-out-audit"><i class="fa fa-circle-o"></i>提现审核</a></li>
			</ul>
		</li>
		<li class="treeview userSLock" userKey="/ssb/statistics">
			<a href="javascript:void(0);">
			<i class="fa fa-cog"></i> <span>统计管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="statistics-channel-list" class="userSLock" userKey="/ssb/statistics/statist-channel-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/statistics/statistics-channel-list"><i class="fa fa-circle-o"></i>渠道商报表统计</a></li>
				<li id="highcharts-channel-list" class="userSLock" userKey="/ssb/statistics/hc-channel-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/statistics/highcharts-channel-list"><i class="fa fa-circle-o"></i>渠道商保费走势图</a></li>
				<li id="statistics-order-list" class="userSLock" userKey="/ssb/statistics/statist-order-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/statistics/statistics-order-list"><i class="fa fa-circle-o"></i>订单报表统计</a></li>
				<li id="highcharts-order-list" class="userSLock" userKey="/ssb/statistics/hc-order-list"><a data-pjax="true" href="${ctx}/sendPage/ssb/admin/statistics/highcharts-order-list"><i class="fa fa-circle-o"></i>产品出单量走势图</a></li>
			</ul>
		</li>

<script>
  	 	//part1、注入jquery.pjax 绑定A标签点击事件
      	$(document).pjax("[data-pjax='true'], a[data-pjax='true']", ".content-wrapper", {
       		fragment: ".content-wrapper"
      	});
	  	//$(document).pjax('a', '#pjax-container');
	  	$(document).on("pjax:send", function() { 
			//alert("发送完成");
		}); 
		$(document).on("pjax:complete", function(resultData) { 
	  		//alert("加载完成");
	  		showClickMenu();
		});
		
		//part2、注入jquery.load 绑定A标签load事件
		$("[data-load='true']").each(function(){
			var thisHref = $(this).attr("href");
			$(this).attr("load-url",thisHref);
			$(this).attr("href","javascript:;");
			$(this).click(function(){
				$(".content-wrapper").load(thisHref+" .content-wrapper>",function(resultData){
					 //alert(resultData);
					 $result = $(resultData);
			         $result.find("script").appendTo(".content-wrapper");//保证子页面的js内容能被引入进来
			         showClickMenu();
				});
			});
		});
 </script>
